package com.jackwoo.jerrymouse.logger;


import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Author: StupidZhe
 * Date: 2019/11/19
 * Desc:
 **/
public class SocketLogger {
    private volatile static Logger logger;

    public static Logger getInstance() {
        if (logger == null) {
            synchronized (SocketLogger.class) {
                if (logger == null) {
                    logger = LoggerFactory.getLogger(SocketLogger.class);
                }
            }
        }
        return logger;
    }

}
